import request from '@/utils/request';

export default{
    //校验密码是否正确
    checkPwd(username,userpass){
        return request({
            url:'/admin/admincheckPsw',
            method:'post',
            data:{
                username,
                userpass
            }
        })
    },
    //修改密码
    updPwd(username,newPsw){
        return request({
            url:'/admin/adminupdataPsw',
            method:'put',
            data:{
                username,
                newPsw
            }
        })
    }
}